xen/arm: mm: Encode existing constraints of the memory layout
authorJulien Grall <jgrall@amazon.com>
Thu, 3 Mar 2022 20:14:53 +0000 (20:14 +0000)
committerJulien Grall <jgrall@amazon.com>
Thu, 3 Mar 2022 20:15:14 +0000 (20:15 +0000)
commit1f410b0c7455748021be4ede59e7a0c0a2ffb1c4
tree5d4ff15a4f7d843e42f3185383b1f5436368d2e4
parentb692523fafb39f5f930e1e8a316f7b8cebc9f62a
xen/arm: mm: Encode existing constraints of the memory layout

The boot code expects the regions XEN_VIRT_START, FIXMAP_ADDR(0),
BOOT_FDT_VIRT_START to use the same 0th (arm64 only) and 1st slot.

Add some BUILD_BUG_ON() to confirm that. This is helpful if one wants
to re-order the memory layout.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/mm.c